package org.trinity.netdisk.mapper;

import org.apache.ibatis.annotations.Param;
import org.trinity.netdisk.entity.ShareFile;
import org.trinity.netdisk.vo.shareFile.ShareFileVO;

import java.util.List;

public interface ShareFileMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShareFile record);

    int insertSelective(ShareFile record);

    ShareFile selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShareFile record);

    int updateByPrimaryKey(ShareFile record);

    ShareFile selectByPrimaryKeyAndCheckCode(@Param("id") Long id,@Param("checkCode") String checkCode);

    List<ShareFileVO> selectShareFileVOByUserId(@Param("user_id")Long userId);

}